package com.flower.enjoyment.flower.mapper;

import com.flower.enjoyment.flower.entity.UserHobby;
import org.apache.ibatis.annotations.Param;

public interface UserHobbyMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserHobby record);

    int insertSelective(UserHobby record);

    UserHobby selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserHobby record);

    int updateByPrimaryKey(UserHobby record);

    /**
     * 根据用户ID和评论ID删除点赞
     * @param assessId
     * @param userId
     * @return
     */
    int deleteUserHobbyById(@Param("assessId") String assessId,@Param("userId") String userId);
}